package com.linys.scala.study.clazz

/**
  * Created by admin on 2019/10/14.
  */
class Point(xc: Int, yc: Int) {

  var x: Int = xc
  var y: Int = yc

  def move(dx: Int, dy: Int) {
    x = x + dx
    y = y + dy
    println ("x 的坐标点: " + x);
    println ("y 的坐标点: " + y);
  }

}
